package com.headline.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.headline.dojo.Headline;
import com.headline.dojo.Vo.PortalVo;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface HeadlineMapper extends BaseMapper<Headline> {

    //自定义分页查询方法
    IPage<Map> selectPageMap(IPage<Headline> page,
                             @Param("portalVo") PortalVo portalVo);

    /**
     * 分页查询头条详情
     * @param hid
     * @return
     */
    Map selectDetailMap(Integer hid);

    Integer updateDataById(Headline headline);
}
